package com.sykj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;





/*
* 用于控制页面的控制器
* */
@Controller
public class PageController {
    /**
     * 后台主页页面
     *
     * @return
     */

    //后台点击后台首页刷新
    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    /**
     * 后台登陆页面
     *
     * @return <<<<<<< Updated upstream
     * @RequestMapping(value="login",method=RequestMethod.GET) public String login(){
     * return "login";
     * }
     */

    @RequestMapping(value = "login", method = RequestMethod.GET)
    public String login() {
        return "login";
    }


    /**
     * 无权限页面
     *
     * @return
     */
    @RequestMapping("/unauthorized")
    public String noPerms() {
        return "unauthorized";
    }
}

